package com.xju.boot_17_18.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xju.boot_17_18.entity.Employee;
import com.xju.boot_17_18.mapper.EmployeeMapper;
import com.xju.boot_17_18.service.EmployeeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {
    @Override
    public List<Employee> selectAll() {
        return baseMapper.selectAll();
    }

    @Override
    public Page<Employee> pageList(Page<?> page) {
        return baseMapper.pageList(page);
    }
}
